import random;
r = random;
print(str(r.randint(1, 1000)) + " " + str(r.randint(1, 1000)) + " " + str(r.randint(1, 1000)) + " " + str(r.randint(1, 1000)));
